/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.delivery.entity.OtherDeliveryRule
   Module Description   :

   Date Created      : 2011/6/29
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.delivery.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author feeling.wang
 * 
 */
@Entity
@Table(name = "EC_OTHER_DELIVERY_RULE", uniqueConstraints = @javax.persistence.UniqueConstraint(columnNames = {
		"TO_PROVINCE", "TO_CITY", "TO_DISTRICT", "TYPE" }))
public class OtherDeliveryRule extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6883927530872810127L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_other_delivery_rule")
	@SequenceGenerator(name = "seq_ec_other_delivery_rule", sequenceName = "SEQ_EC_OTHER_DELIVERY_RULE")
	@Column(name = "OID")
	private Long oid;

	// 10-大材积
	@Column(name = "TYPE", nullable = false, length = 10)
	private String type;

	@Column(name = "TO_PROVINCE", nullable = false, length = 20)
	private String toProvince;

	@Column(name = "TO_CITY", length = 20, nullable = false)
	private String toCity;

	@Column(name = "TO_DISTRICT", length = 20, nullable = false)
	private String toDistrict;

	@Column(name = "FACTOR", length = 20, nullable = false)
	private String factor;

	public Long getOid() {
		return oid;
	}

	public String getType() {
		return type;
	}

	public void setOid(Long oid) {
		this.oid = oid;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getToProvince() {
		return toProvince;
	}

	public String getToCity() {
		return toCity;
	}

	public String getToDistrict() {
		return toDistrict;
	}

	public void setToProvince(String toProvince) {
		this.toProvince = toProvince;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public void setToDistrict(String toDistrict) {
		this.toDistrict = toDistrict;
	}

	public String getFactor() {
		return factor;
	}

	public void setFactor(String factor) {
		this.factor = factor;
	}
}
